package com.jk.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jk.dto.Department;
import com.jk.dto.Tree;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description 添加描述
 * @LastChangeDate 2025/2/13 20:14
 * @Version v1.0
 */
public interface DepartmentMapper extends BaseMapper<Department> {
    @Select("select id as id ,department_name as label from department where parent_id = #{pid}")
    List<Tree> getNodesData(Long pid);
}
